﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Light.Framework.Model;
using Light.Utility;

namespace Light.Framework.Contract
{
    /// <summary>
    /// 登录接口（实现此接口的类可执行登录操作）
    /// </summary>
    public interface ILogin
    {
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="name">用户名</param>
        /// <param name="pwd">密码</param>
        /// <param name="type">登录类型</param>
        /// <returns></returns>
        OperateResult Login(string name, string pwd);

        /// <summary>
        /// 退出登录
        /// </summary>
        void Logout();
    }
}
